{% extends "base.html" %}
{% load url from future %}

{% block content %}

{% if form.errors %}
<p>Please try again.</p>
{% endif %}

<h2>Add Phrases</h2>

<form method="post" action="/data/add_phrases/">
{% csrf_token %}
<table>
<tr>
    <td>{{ form.day.label_tag }}</td>
    <td>{{ form.day }}</td>
</tr>
<tr>
    <td>{{ form.phrases.label_tag }}</td>
    <td>{{ form.phrases }}</td>
</tr>
<tr>
    <td>{{ form.phrases_of_day.label_tag }}</td>
    <td>{{ form.phrases_of_day }}</td>
</tr>
<tr>
    <td>{{ form.categories.label_tag }}</td>
    <td>{{ form.categories }}</td>
</tr>
</table>

<input type="submit" value="add" />
</form>

{% endblock %}
